﻿using Microsoft.Extensions.Hosting;
using ReaWTM.LayuiHelper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace LayuiDemo.Models
{
	public class Blog : BasePoco
	{
		[Display(Name = "博客名")] public string Name { get; set; }
		[Display(Name = "博客地址")] public string Url { get; set; }

		//public List<Post> Posts { get; set; }
		public Guid? PhotoId { get; set; }
		public FileAttachment Photo { get; set; }

		[Display(Name = "附件")] public List<BlogFile> Files { get; set; }
		public ButtonSizeEnum? ButtonSize { get; set; }
		[NotMapped]
		public List<ButtonSizeEnum> ButtonSizes { get; set; }
	}
}
